{% extends 'base.html' %}

{% block content %}
    <div class="w-6xl">
        <h1 class="text-2xl font-bold mb-4">Articles</h1>
        <div class="overflow-x-auto">
            <table class="table table-zebra w-full">
                <thead>
                <tr>
                    <th class="text-left">Tile</th>
                    <th class="text-left">Description</th>
                    <th class="text-left">Published</th>
                    <th class="text-left">Actions</th>
                </tr>
                </thead>
                <tbody>
                {% for article in articles %}
                    {% include 'article_row.html' %}
                {% endfor %}

                </tbody>
            </table>
        </div>
    </div>
{% endblock %}